Optimal. Leaf size=216 \[ -\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )+a d \log (x)+\frac {1}{2} b e \text {Li}_2(-c x) \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right )-\frac {1}{2} b e \text {Li}_2(c x) \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right )-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)+b e \text {Li}_3(1-c x)-b e \text {Li}_3(c x+1)-b e \text {Li}_2(1-c x) \log (1-c x)+b e \text {Li}_2(c x+1) \log (c x+1)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(c x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 216, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 9, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6079, 5912, 6077, 2391, 6075, 2396, 2433, 2374, 6589} \[ -\frac {1}{2} a e \text {PolyLog}\left (2,c^2 x^2\right )+\frac {1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text {PolyLog}(2,-c x)-\frac {1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text {PolyLog}(2,c x)-\frac {1}{2} b d \text {PolyLog}(2,-c x)+\frac {1}{2} b d \text {PolyLog}(2,c x)+b e \text {PolyLog}(3,1-c x)-b e \text {PolyLog}(3,c x+1)-b e \log (1-c x) \text {PolyLog}(2,1-c x)+b e \log (c x+1) \text {PolyLog}(2,c x+1)+a d \log (x)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(c x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2374
Rule 2391
Rule 2396
Rule 2433
Rule 5912
Rule 6075
Rule 6077
Rule 6079
Rule 6589
Rubi steps
\begin {align*} \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x} \, dx &=d \int \frac {a+b \tanh ^{-1}(c x)}{x} \, dx+e \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (1-c^2 x^2\right )}{x} \, dx\\ &=a d \log (x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)+(a e) \int \frac {\log \left (1-c^2 x^2\right )}{x} \, dx+(b e) \int \frac {\tanh ^{-1}(c x) \log \left (1-c^2 x^2\right )}{x} \, dx\\ &=a d \log (x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)-\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )-\frac {1}{2} (b e) \int \frac {\log ^2(1-c x)}{x} \, dx+\frac {1}{2} (b e) \int \frac {\log ^2(1+c x)}{x} \, dx+\left (b e \left (-\log (1-c x)-\log (1+c x)+\log \left (1-c^2 x^2\right )\right )\right ) \int \frac {\tanh ^{-1}(c x)}{x} \, dx\\ &=a d \log (x)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(1+c x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)-\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(c x)-\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )-(b c e) \int \frac {\log (c x) \log (1-c x)}{1-c x} \, dx-(b c e) \int \frac {\log (-c x) \log (1+c x)}{1+c x} \, dx\\ &=a d \log (x)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(1+c x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)-\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(c x)-\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )+(b e) \operatorname {Subst}\left (\int \frac {\log (x) \log \left (c \left (\frac {1}{c}-\frac {x}{c}\right )\right )}{x} \, dx,x,1-c x\right )-(b e) \operatorname {Subst}\left (\int \frac {\log (x) \log \left (-c \left (-\frac {1}{c}+\frac {x}{c}\right )\right )}{x} \, dx,x,1+c x\right )\\ &=a d \log (x)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(1+c x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)-\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(c x)-\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )-b e \log (1-c x) \text {Li}_2(1-c x)+b e \log (1+c x) \text {Li}_2(1+c x)+(b e) \operatorname {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1-c x\right )-(b e) \operatorname {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1+c x\right )\\ &=a d \log (x)-\frac {1}{2} b e \log (c x) \log ^2(1-c x)+\frac {1}{2} b e \log (-c x) \log ^2(1+c x)-\frac {1}{2} b d \text {Li}_2(-c x)+\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(-c x)+\frac {1}{2} b d \text {Li}_2(c x)-\frac {1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text {Li}_2(c x)-\frac {1}{2} a e \text {Li}_2\left (c^2 x^2\right )-b e \log (1-c x) \text {Li}_2(1-c x)+b e \log (1+c x) \text {Li}_2(1+c x)+b e \text {Li}_3(1-c x)-b e \text {Li}_3(1+c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.26, size = 0, normalized size = 0.00 \[ \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b d \operatorname {artanh}\left (c x\right ) + a d + {\left (b e \operatorname {artanh}\left (c x\right ) + a e\right )} \log \left (-c^{2} x^{2} + 1\right )}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \operatorname {artanh}\left (c x\right ) + a\right )} {\left (e \log \left (-c^{2} x^{2} + 1\right ) + d\right )}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 10.98, size = 1638, normalized size = 7.58 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 152, normalized size = 0.70 \[ -\frac {1}{2} \, {\left (\log \left (c x\right ) \log \left (-c x + 1\right )^{2} + 2 \, {\rm Li}_2\left (-c x + 1\right ) \log \left (-c x + 1\right ) - 2 \, {\rm Li}_{3}(-c x + 1)\right )} b e + \frac {1}{2} \, {\left (\log \left (c x + 1\right )^{2} \log \left (-c x\right ) + 2 \, {\rm Li}_2\left (c x + 1\right ) \log \left (c x + 1\right ) - 2 \, {\rm Li}_{3}(c x + 1)\right )} b e + a d \log \relax (x) - \frac {1}{2} \, {\left (b d - 2 \, a e\right )} {\left (\log \left (c x\right ) \log \left (-c x + 1\right ) + {\rm Li}_2\left (-c x + 1\right )\right )} + \frac {1}{2} \, {\left (b d + 2 \, a e\right )} {\left (\log \left (c x + 1\right ) \log \left (-c x\right ) + {\rm Li}_2\left (c x + 1\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )\,\left (d+e\,\ln \left (1-c^2\,x^2\right )\right )}{x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \operatorname {atanh}{\left (c x \right )}\right ) \left (d + e \log {\left (- c^{2} x^{2} + 1 \right )}\right )}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________